<nz-card>
  <div nz-row>
    <div nz-col [nzSpan]="_$expand ? 24 : 18">
      <sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
    </div>
    <div nz-col [nzSpan]="_$expand ? 24 : 6" class="text-right">
      <button nz-button nzType="primary" [disabled]="!sf.valid" (click)="st?.load(1)">查询</button>
      <button nz-button (click)="resetSF()">重置</button>
      <button nz-button (click)="export()" nzType="primary" nzGhost>导出</button>
      <button nz-button nzType="link" (click)="expandToggle()">
        {{ !_$expand ? '展开' : '收起' }}
        <i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
      </button>
    </div>
  </div>
  <div class="mt-sm">
    <st #st [data]="service. $api_get_virtual_detail_page" [columns]="columns" [columns]="columns"
      [scroll]="{ x: '1200px' }"
      [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
      [res]="{ reName: { list: 'data.records', total: 'data.total' } }"
      [page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
      [loading]="service.http.loading">
      <ng-template st-row="allBalance" let-item>
        <div class="text-right">
          {{item.allBalance}}
        </div>
      </ng-template>
      <ng-template st-row="availableBalance" let-item>
        <div class="text-right">
          {{item.availableBalance}}
        </div>
      </ng-template>
    </st>
  </div>
</nz-card>
<div class="modal-footer text-center">
  <button nz-button type="button" nzType="primary" (click)="close()">确 定</button>
</div>
